import java.rmi.Naming;

public class Server {

	public static void main(String[] argv){
		try{
			Naming.rebind("FileServ", new FileService());
			System.out.println("Server is ready . . .");
		}catch(Exception e){
			System.out.println("Server failed: " + e);
		}
	}
}
